package com.jxx.util;

import com.jxx.pojo.Admin;
import org.apache.shiro.SecurityUtils;

public class ShiroUtils {

    public static String getUsername() {
        return getUser().getAdminAccount();
    }

    public static Admin getUser() {
        return  (Admin) SecurityUtils.getSubject().getPrincipal();
    }
}